package com.bknow.model;

import java.io.Serializable;
import java.util.Date;

public class CommentInfo implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//评论id
	private Integer commentId;
	//评论内容
	private String commentContent;
	//文章
	private ArticleInfo  articleInfo;
	//用户
	private UserInfo userInfo;
	//评论时间
	private String commentDate;
	public CommentInfo() {
		
	}
	
	public CommentInfo(String commentContent, ArticleInfo articleInfo, UserInfo userInfo,
			String commentDate) {
		super();
		this.commentContent = commentContent;
		this.articleInfo = articleInfo;
		this.userInfo = userInfo;
		this.commentDate = commentDate;
	}

	public Integer getCommentId() {
		return commentId;
	}
	public void setCommentId(Integer commentId) {
		this.commentId = commentId;
	}
	public String getCommentContent() {
		return commentContent;
	}
	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}
	
	public ArticleInfo getArticleInfo() {
		return articleInfo;
	}
	public void setArticleInfo(ArticleInfo articleInfo) {
		this.articleInfo = articleInfo;
	}
	public UserInfo getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	
	public String getCommentDate() {
		return commentDate;
	}

	public void setCommentDate(String commentDate) {
		this.commentDate = commentDate;
	}

	@Override
	public String toString() {
		return "CommentInfo [commentId=" + commentId + ", commentContent=" + commentContent + ", articleInfo="
				+ articleInfo + ", userInfo=" + userInfo + ", commentDate=" + commentDate + "]";
	}
	
	
	
	
	
}
